package cn.anline.ann.ebean;

import cn.anline.ann.ebean.model.Ann_user;
import io.ebean.Ebean;
import io.ebean.EbeanServer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Ann {
    static Logger logger = LoggerFactory.getLogger(Ann.class);

    public static void main(String[] args) {
        Ann_user user = new Ann_user();
        user.setAge(23);
        user.setName("罗正安");
        logger.debug(user.toString());
        EbeanServer ebeanServer = Ebean.getDefaultServer();
        ebeanServer.save(user);
    }
}
